package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevDevice;
import cn.sciento.farm.devicemanager.dao.model.DeviceStatistics;

import java.util.List;
import java.util.Map;

public interface DeviceService {
    DevDevice getById(String eui);

    int updateStatus(String eui, int nodeJoinCode);


    int updateOnline(String eui, int up);

    int updateSysById(DevDevice oldConcentrator);

    int insert(DevDevice devDevice);

    int updateById(DevDevice devDevice);

    List<DevDevice> getByLandId(int landId);

    int deleteById(String eui);

    List<DevDevice> getByAreaId(int areaId);

    DeviceStatistics getStatistics(long areaId);

    List<DevDevice> getBySceneId(Long id);

    int deleteByArea(Integer areaId,Integer landId);

}
